<template>
  <view class="map-main">
    <web-view :src="link"></web-view>
  </view>
</template>

<script>


  import {getRouterParam} from "../../util/misc"

  export default {
    data() {
      return {
        link: '',
      }
    },
    methods: {},
    computed: {
    },
    // onBackPress(options) {
    // },
    mounted() {
      // 设置顶部文字
      let routerParams = getRouterParam()
      this.link = routerParams.url
      if (!this.link.startsWith('http')){
        this.link = 'http://' + this.link
      }
      uni.setNavigationBarTitle({
        url: '推广页'
      })
    }
  }
</script>

<style scoped lang="scss">
  .map-main{
    .reset-button{
      height: 6vw;
      width: 6vw;
      background-color: red;
      position: fixed;
      right: 0;
      top: 50%;
      margin-top: -3vw;
      z-index: 100000;
    }
  }
</style>
